package com.ruoyi.baoming.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.baoming.mapper.ExamApprovalMapper;
import com.ruoyi.baoming.domain.ExamApproval;
import com.ruoyi.baoming.service.IExamApprovalService;

/**
 * 考试报名审核信息Service业务层处理
 * 
 * @author xiaosong
 * @date 2024-11-20
 */
@Service
public class ExamApprovalServiceImpl implements IExamApprovalService 
{
    @Autowired
    private ExamApprovalMapper examApprovalMapper;

    /**
     * 查询考试报名审核信息
     * 
     * @param id 考试报名审核信息主键
     * @return 考试报名审核信息
     */
    @Override
    public ExamApproval selectExamApprovalById(Long id)
    {
        return examApprovalMapper.selectExamApprovalById(id);
    }

    /**
     * 查询考试报名审核信息列表
     * 
     * @param examApproval 考试报名审核信息
     * @return 考试报名审核信息
     */
    @Override
    public List<ExamApproval> selectExamApprovalList(ExamApproval examApproval)
    {
        return examApprovalMapper.selectExamApprovalList(examApproval);
    }

    /**
     * 新增考试报名审核信息
     * 
     * @param examApproval 考试报名审核信息
     * @return 结果
     */
    @Override
    public int insertExamApproval(ExamApproval examApproval)
    {
        return examApprovalMapper.insertExamApproval(examApproval);
    }

    /**
     * 修改考试报名审核信息
     * 
     * @param examApproval 考试报名审核信息
     * @return 结果
     */
    @Override
    public int updateExamApproval(ExamApproval examApproval)
    {
        return examApprovalMapper.updateExamApproval(examApproval);
    }

    /**
     * 批量删除考试报名审核信息
     * 
     * @param ids 需要删除的考试报名审核信息主键
     * @return 结果
     */
    @Override
    public int deleteExamApprovalByIds(Long[] ids)
    {
        return examApprovalMapper.deleteExamApprovalByIds(ids);
    }

    /**
     * 删除考试报名审核信息信息
     * 
     * @param id 考试报名审核信息主键
     * @return 结果
     */
    @Override
    public int deleteExamApprovalById(Long id)
    {
        return examApprovalMapper.deleteExamApprovalById(id);
    }
}
